package com.wmyg.scanninggun.bean;

import lombok.Data;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.util.Date;


/**
 * 注册用户实体类
 * @author yangy
 * @since 2018/9/28 上午
 *
 */
@Alias("User")
@Data
public class User implements Serializable {

    private static final long serialVersionUID = 8666851615465363473L;

    private Integer userId;
    private Integer userType;
    private String userName;
    private String userPwd;
    private String phone;
    private String email;
    private Integer factoryId;

    private Date addTime;
    private Date modifyTime;

    public User(){

    }

    public User(Integer userId, Integer userType, String userName, String userPwd, String phone, String email, Integer factoryId){
        this.userId = userId;
        this.userType = userType;
        this.userName = userName;
        this.userPwd = userPwd;
        this.phone = phone;
        this.email = email;
        this.factoryId = factoryId;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", userType=" + userType +
                ", userName='" + userName + '\'' +
                ", userPwd='" + userPwd + '\'' +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", factoryId=" + factoryId +
                ", addTime=" + addTime +
                ", modifyTime=" + modifyTime +
                '}';
    }
}
